@mixin flex-end {
  display: flex;
  justify-content: end
}

@mixin flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page {
  overflow-y: scroll;
  height: calc(100% - 40px);
}

/*参数表单 */
.params-form {
  background: #F6F8FA;
  margin-bottom: 10px;

  ::v-deep(.el-form) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 76px;
  }

  ::v-deep(.el-select__wrapper),
  ::v-deep(.el-input__wrapper) {
    background: white;
  }

  .form-btn {
    @include flex-end;
  }

  .space {
    flex: 1;
    display: flex;
    gap: 10px;
  }

}

/*操作按钮 */
.operate {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;

  ::v-deep(.el-input) {
    width: 400px;
    position: absolute;
    right: 0;
  }
}

/*分页 */
.pagination {
  margin-top: 20px;
  @include flex-end;
}

/*tab、操作、表头粘性定位*/
.sticky {
  position: sticky;
  top: -20px;
  background: white;
  z-index: 99;
}

/*商品来源 */
.source {
  border: 1px solid #ebeef5;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding-left: 12px;

  >div {
    cursor: pointer;
    width: 88px;
    padding: 0 8px;
    height: 30px;
    line-height: 30px;
    text-align: center;
  }

  .active {
    background: #F2F3F8;
    color: #007DFF;
    width: 88px;
    height: 30px;
    border-radius: 32px;

  }

  ::v-deep(.el-button) {
    position: absolute;
    right: 12px;
  }
}

/*表头*/
.table-head {
  background: #F2F6FC;
  align-items: center;
  height: 40px;
  margin-bottom: 10px;

  .el-col:nth-child(1) {
    display: flex;
    align-items: center;

    .all {
      width: 40px;
      @include flex-center;
    }

    .image-title {
      display: inline-block;
      width: 98px;
    }
  }

  .el-col {
    text-align: center;
  }

  .el-col:nth-child(1) {
    text-align: left;
  }


  .sort {
    display: flex;
    align-items: center;

    ::v-deep(.el-icon) {
      color: #C0C4CC;
      margin-left: 8px;
    }
  }
}

/*列表 */
.table-list {
  .el-checkbox-group {
    line-height: unset;
    font-size: unset;
  }

  .el-col {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E1E6ED;
    border-left: 1px solid #E1E6ED;
    justify-content: center;
  }

  .el-col:nth-child(1) {
    justify-content: start;
  }

  .el-col:last-child {
    border-right: 1px solid #E1E6ED;
  }

  .goods {
    margin-bottom: 12px;

    .business-name {
      display: flex;
      background: #F2F6FC;
      color: #007DFF;
      height: 40px;
      font-size: 14px;
      line-height: 40px;

      .all {
        width: 40px;
        @include flex-center;

        ::v-deep(.el-checkbox__label) {
          padding: 0;
        }
      }
    }

    .remark {
      font-size: 14px;
      display: flex;
      border: 1px solid #ebeef5;
      border-top: none;
      padding: 12px;

      .label {
        color: #86909C;
        white-space: nowrap;
      }
    }

  }

  .table-operate {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    row-gap: 10px;

    ::v-deep(.el-button) {
      margin: 0 auto;
    }
  }

  .image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin: 0 18px 0 40px;
  }

  .info {
    color: #86909C;
    font-size: 12px;
    line-height: 20px;

    .red {
      color: red;
    }
  }

  .el-input {
    margin: 0 10px;
  }
}

/* 批量操作表单提示 */
.tip {
  color: #86909C;
  font-size: 12px;
  line-height: 18px;
}

/*错误状态时，隐藏提示 */
::v-deep(.is-error) {
  .tip {
    display: none;
  }
}

/*尺寸*/
.size {
  display: flex;
  gap: 10px;
  line-height: 26px;

  img {
    width: 80px;
    height: 80px;
  }
}

/*日志标题 */
.log-title {
  padding-left: 24px;
}

/*日志弹窗分割线 */
.blank {
  height: 10px;
  background: #EEF1F4;
  margin: 20px 0;
}

/*日志弹窗列表 */
.list {
  height: 450px;
  overflow-y: scroll;

  .line {
    padding: 0 24px;
    display: flex;
    height: 52px;
    line-height: 52px;
    justify-content: space-between;
    border-bottom: 1px solid #EEEEEE;

    >div {
      color: #000000;
    }

    span {
      color: #86909C;
      margin-left: 40px;
    }
  }
}

/*变更明细tab */
.alter-tab {
  display: flex;

  >div {
    width: 100px;
    height: 30px;
    border: 1px solid #DCDCDC;
    color: #000000;
    line-height: 30px;
    text-align: center;
  }

  >div:nth-child(2) {
    position: relative;
    left: -1px;
  }

  .active {
    border: 1px solid #007DFF;
    color: #007DFF;
    z-index: 1;
  }
}

.alter-list {
  margin-top: 20px;
  display: flex;
  position: relative;
  border: 1px solid #E1E6ED;

  .alter-list-head {
    width: 120px;
    background: #F2F6FC;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 99999;
    border-right: 1px solid #E1E6ED;

    >div {
      min-height: 60px;
      line-height: 60px;
      text-align: center;
      border-bottom: 1px solid #E1E6ED;
    }

    >div:last-child {
      border-bottom: none;
    }
  }

  .alter-list-content {
    display: flex;
    overflow-x: scroll;

    .alter-list-item {
      width: 150px;
      flex-shrink: 0;
      text-align: center;
      border-right: 1px solid #E1E6ED;

      >div {
        min-height: 60px;
        border-bottom: 1px solid #E1E6ED;
      }

      &:last-child {
        border-bottom: none;
      }

      .alter-list-item-head {
        background: #F2F6FC;
        line-height: 60px;
      }
    }
  }

}

.sure {
  text-align: center;

  ::v-deep(.el-icon) {
    font-size: 60px;
    margin-bottom: 20px;
    color: rgb(255, 51, 51);
  }
}

.alert {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin: 0 0 20px;
  background: #ffd9c2;
  border-radius: 6px;

  .el-icon {
    color: #e37318;
    margin: 0 10px;
  }
}

.batch-list {
  :deep(.goods-detail) {
    margin-bottom: 20px;
  }
}

.loading {
  height: 100px;
}